class SuDate {
  static SuDate _instance;

  factory SuDate() => _getInstance();

  static SuDate get instance => _getInstance();

  static SuDate _getInstance() {
    if (_instance == null) {
      _instance = SuDate._();
    }

    return _instance;
  }

  SuDate._();

  DateTime _dateTime = DateTime.now();

  DateTime get nowTimeString{
    if(_dateTime != null){
      return _dateTime;
    }
    _dateTime = DateTime.now();
    return _dateTime;
  }

  getNowTimeString(){
    var year =  this._dateTime.year.toString();
    var month =  this._dateTime.month.toString();
    var day =  this._dateTime.day.toString();
    return year+month+day;
  }
}
